﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<BGCMS.Models.aspnet_User>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Brjóstagjöf.is
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <% Html.RenderPartial("AdminLinks"); %>
    </div>
    <h2>
        Listi yfir bannaða notendur</h2>
    <table class="tafla">
        <thead>
            <th>
                Notendanafn
            </th>
            <th>
            </th>
        </thead>
        <tbody>
            <% foreach (var u in Model)
               { %>
            <tr>
                <td>
                    <%: u.UserName %>
                </td>
                <td>
                    <a href="#" onclick="approve('<%: u.UserId %>')">Virkja</a>
                </td>
            </tr>
            <% } %>
        </tbody>
    </table>
</asp:Content>